<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Contact
 *
 * @author Sorasak Siangsanan
 */
class Contact extends CActiveRecord {

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function primaryKey() {
        return 'contact_id';
    }

    public function tableName() {
        return "contact";
    }

    public function attributeLabels() {
        return array(
            "contact_id" => "contact_id",
            "name" => "name",
            "email" => "email",
            "subject" => "subject",
            "detail" => "detail",
            "create_date" => "create_date"
        );
    }

}
